package com.hg.library.model;

import android.util.Log;

import java.io.Serializable;
import java.util.Arrays;

/**
 * Created by ASUS-PC on 2016/1/18.
 */
public class DownloadModel implements Serializable {

    private String id;//应用id

    private String app_id;

    private String package_name;//应用包名

    private String url;//官网

    private String icon;//应用图标URL

    private String title;//应用标题

    private int type;//应用类型

    private String kinds[];//应用分类

    private String hid[];//操作设备

    private int feature[];//应用特征

    private int version_code;//应用 version_code

    private String version_name;//应用 version_name

    private String download_url;//应用下载地址

    private int update_time;//应用更新时间戳（单位：秒）

    private int file_size;//文件大小

    private int sdk_version;//应用支持最低版本

    private String sdk_version_txt;//版本名

    private int compatibility;//兼容性

    private String description;//应用描述

    private String change_logs;//更新日志

    private String publisher;//发行商

    private String[] screenshots;//应用截图

    private String extra_data;//额外日期

    private String feature_img;//应用推荐位图

    private int download_vol;//下载量

    private float score;//评分

    private String sub_id;//专题id

    private String sub_title;//专题名称

    private String sub_cover;//专题图片地址

    private byte[] sub_cover_bytes;//

    private String comm_id;//评论ID

    private String user_id;//用户ID

    private String user_avatar;//用户头像

    private String comm;//评论内容

    private int sysid;

    private String image;

    private String open_id;

    public String getApp_id() {
        return app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getSysid() {
        return sysid;
    }

    public void setSysid(int sysid) {
        this.sysid = sysid;
    }

    private String large_pic;//专题icon

    public String getLarge_pic() {
        return large_pic;
    }

    public void setLarge_pic(String large_pic) {
        this.large_pic = large_pic;
    }

    public String getSub_id() {
        return sub_id;
    }

    public void setSub_id(String sub_id) {
        this.sub_id = sub_id;
    }

    public String getSub_cover() {
        return sub_cover;
    }

    public void setSub_cover(String sub_cover) {
        this.sub_cover = sub_cover;
    }

    public String getSub_title() {
        return sub_title;
    }

    public void setSub_title(String sub_title) {
        this.sub_title = sub_title;
    }

    public int getDownload_vol() {
        return download_vol;
    }

    public void setDownload_vol(int download_vol) {
        this.download_vol = download_vol;
    }

    public String getFeature_img() {
        return feature_img;
    }

    public void setFeature_img(String feature_img) {
        this.feature_img = feature_img;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPackage_name() {
        return package_name;
    }

    public void setPackage_name(String package_name) {
        this.package_name = package_name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String[] getKinds() {
        return kinds;
    }

    public void setKinds(String[] kinds) {
        this.kinds = kinds;
    }

    public String[] getHid() {
        return hid;
    }

    public void setHid(String[] hid) {
        this.hid = hid;
    }

    public int getVersion_code() {
        return version_code;
    }

    public void setVersion_code(int version_code) {
        this.version_code = version_code;
    }

    public String getVersion_name() {
        return version_name;
    }

    public void setVersion_name(String version_name) {
        this.version_name = version_name;
    }

    public String getDownload_url() {
        return download_url;
    }

    public void setDownload_url(String download_url) {
        this.download_url = download_url;
    }

    public int getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(int update_time) {
        this.update_time = update_time;
    }

    public int getFile_size() {
        return file_size;
    }

    public void setFile_size(int file_size) {
        this.file_size = file_size;
    }

    public int getSdk_version() {
        return sdk_version;
    }

    public void setSdk_version(int sdk_version) {
        this.sdk_version = sdk_version;
    }

    public int getCompatibility() {
        return compatibility;
    }

    public void setCompatibility(int compatibility) {
        this.compatibility = compatibility;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getChange_logs() {
        return change_logs;
    }

    public void setChange_logs(String change_logs) {
        this.change_logs = change_logs;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String[] getScreenshots() {
        return screenshots;
    }

    public void setScreenshots(String[] screenshots) {
        this.screenshots = screenshots;
    }

    public String getSdk_version_txt() {
        return sdk_version_txt;
    }

    public void setSdk_version_txt(String sdk_version_txt) {
        this.sdk_version_txt = sdk_version_txt;
    }

    public String getExtra_data() {
        return extra_data;
    }

    public void setExtra_data(String extra_data) {
        this.extra_data = extra_data;
    }

    public int[] getFeature() {
        return feature;
    }

    public void setFeature(int[] feature) {
        this.feature = feature;
    }

    public String getComm_id() {
        return comm_id;
    }

    public void setComm_id(String comm_id) {
        this.comm_id = comm_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getUser_avatar() {
        return user_avatar;
    }

    public void setUser_avatar(String user_avatar) {
        this.user_avatar = user_avatar;
    }

    public String getComm() {
        return comm;
    }

    public void setComm(String comm) {
        this.comm = comm;
    }

    public String getOpen_id() {
        return open_id;
    }

    public void setOpen_id(String open_id) {
        this.open_id = open_id;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof DownloadModel){
            DownloadModel downloadModel = (DownloadModel) o;
            return title.equals(downloadModel.getTitle());
        }
        return false;
    }

    @Override
    public String toString() {
        return "DownloadModel{" +
                "id='" + id + '\'' +
                ", package_name='" + package_name + '\'' +
                ", url='" + url + '\'' +
                ", icon='" + icon + '\'' +
                ", title='" + title + '\'' +
                ", type=" + type +
                ", kinds=" + Arrays.toString(kinds) +
                ", hid=" + Arrays.toString(hid) +
                ", feature=" + Arrays.toString(feature) +
                ", version_code=" + version_code +
                ", version_name='" + version_name + '\'' +
                ", download_url='" + download_url + '\'' +
                ", update_time=" + update_time +
                ", file_size=" + file_size +
                ", sdk_version=" + sdk_version +
                ", sdk_version_txt='" + sdk_version_txt + '\'' +
                ", compatibility=" + compatibility +
                ", description='" + description + '\'' +
                ", change_logs='" + change_logs + '\'' +
                ", publisher='" + publisher + '\'' +
                ", screenshots=" + Arrays.toString(screenshots) +
                ", extra_data='" + extra_data + '\'' +
                ", feature_img='" + feature_img + '\'' +
                ", download_vol=" + download_vol +
                ", score=" + score +
                ", sub_id='" + sub_id + '\'' +
                ", sub_title='" + sub_title + '\'' +
                ", sub_cover='" + sub_cover + '\'' +
                ", comm_id='" + comm_id + '\'' +
                ", user_id='" + user_id + '\'' +
                ", user_avatar='" + user_avatar + '\'' +
                ", comm='" + comm + '\'' +
                ", open_id='" + open_id + '\'' +
                '}';
    }
}
